package com.java.star.mall.front.pojo.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 订单列表VO实体
 */
@Data
public class OrderListVO implements Serializable {

    private static final long serialVersionUID = 6351308562107400850L;

    @ApiModelProperty(value = "订单id")
    private Integer id;

    @ApiModelProperty(value = "订单号")
    private String orderSn;

    @ApiModelProperty(value = "订单状态")
    private String status;

    @ApiModelProperty(value = "应付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "商品项列表")
    private List<OrderItemVO> orderItemList;

    @ApiModelProperty(value = "订单可进行的操作")
    private AllowOperationVO allowOperation;

    public AllowOperationVO getAllowOperation() {
        return new AllowOperationVO(this);
    }
}
